package com.adapter.pattern.service;

import com.adapter.pattern.domain.Member;
import com.adapter.pattern.domain.ResultMsg;

/**
 * @author cc
 * @classname SignService
 * @description 老版登录
 * @date 2022/3/28 15:22
 */
public class SignService {

    /**
     * 注册方法
     *
     * @param username
     * @param password
     * @return
     */
    public ResultMsg register(String username, String password) {
        System.out.println("注册成功");
        return new ResultMsg(200, "注册成功", new Member());
    }

    /**
     * 登录的方法
     *
     * @param username
     * @param password
     * @return
     */
    public ResultMsg login(String username, String password) {
        System.out.println("登录成功");
        return new ResultMsg(200, "登录成功", new Member());
    }
}
